package com.craiglarman.monopoly.domain;

import java.util.Random;

public class Die {
	
	public static final int MAX = 6;
	public static final int MIN = 1;
	private int faceValue;
	private Random random = new Random(System.currentTimeMillis());
	
	
	public Die() {
		this.faceValue=MIN;
	}
	
	public Die(int faceValue) {
		this.faceValue=faceValue;
	}

	public int getFaceValue() {
		return faceValue;
	}

	public void roll() {
		this.faceValue = random.nextInt(MAX)+1;
	}

}
